package bairui.international.console.web.controller.authority.authorization.group.employee;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;

import com.lianjing.sh.project.config.web.Project_Config_Web_PageTemplate;
import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.module.context.ModuleContext;
import com.lianjing.sh.spring.web.controller.enhance.navigations.context.NavigationContext;


/**
 * @generated
 *
 * C_Authority_Authorization_Group_EmployeeRemove_PageAccess
 *
 */
@Controller
public class C_Authority_Authorization_Group_EmployeeRemove_PageAccess
 extends SC_Authority_Authorization_Group_EmployeeRemove_PageAccess 
{
	

	/**
	 * 访问分页列表页面
	 */
	@Action(PageAccess.class)
	@GetMapping(PageAccess.RequestMappingValue)
	public ModelAndView pageAccess(
		ModelMap map, HttpServletRequest request,
		NavigationContext navigationContext, ModuleContext moduleContext, 
		@PathVariable(name=PageAccess.PathVariableName.GroupId) long groupId
	) throws Exception {
		/* 模块 */
		moduleContext
			.addModule(this.module_EmployeeSelectPage.module(
					new C_Authority_Authorization_Group_EmployeeRemove_Page.Page.Operate() {
						@Override public Object getGroupId() {
							return groupId;
						}
					}, 
					new C_Authority_Authorization_Group_EmployeeRemove_Remove.Remove.Operate() {
						@Override public Object getGroupId() {
							return groupId;
						}
						@Override public Object getEmployeeId() {
							return "{{:id}}";
						}
					}
				));
		//
		return Project_Config_Web_PageTemplate.Admin_Common(request);
	}
	

}


